package schedule;


import java.util.Collection;


public class RemoveEvent implements Command
{
	private Event event;
	
	public RemoveEvent(Event event)
	{
		this.event = event;
	}
	
	@Override
	public void execute(Collection<Event> events)
	{
		events.remove(event);
	}

	@Override
	public void unexecute(Collection<Event> events)
	{
		events.add(event);
	}
}
